package com.czy.booktest02.demos.service;

import com.czy.booktest02.demos.common.dtos.ResponseResult;
import com.czy.booktest02.demos.pojo.dto.UserDto;
import com.czy.booktest02.demos.pojo.dto.UserLoginDto;

public interface UserService {
    public ResponseResult login(UserLoginDto userDto);

    public ResponseResult register(UserDto userDto);

    public ResponseResult banByAdmin(int id);

    ResponseResult selectAllUser();

    ResponseResult updateUserStatus(int id,boolean flag);

    ResponseResult deleteUser(int id);

    ResponseResult setPermission(int id,int permission);
}
